package com.example.demo.entity;

import java.sql.Timestamp;

public class ShopCart {
    private int id;
    private int memb_id;
    private int book_id;
    private int book_num;
    private Timestamp create_time;
    private Timestamp update_time;

    public ShopCart() {
    }

    public ShopCart(int id, int memb_id, int book_id, int book_num, Timestamp create_time, Timestamp update_time) {
        this.id = id;
        this.memb_id = memb_id;
        this.book_id = book_id;
        this.book_num = book_num;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMemb_id() {
        return memb_id;
    }

    public void setMemb_id(int memb_id) {
        this.memb_id = memb_id;
    }

    public int getBook_id() {
        return book_id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public int getBook_num() {
        return book_num;
    }

    public void setBook_num(int book_num) {
        this.book_num = book_num;
    }

    public Timestamp getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    public Timestamp getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Timestamp update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "ShopCart{" +
                "id=" + id +
                ", memb_id=" + memb_id +
                ", book_id=" + book_id +
                ", book_num=" + book_num +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
